<script setup>
import {ref} from 'vue'

const name = ref('test name')
const setName = () => {
  name.value = 'test new name'
}
const testMessage = ref('this is test msg')
defineExpose({
  name,
  setName,
  testMessage
})

</script>

<template>
  <div>
    我是test组件
  </div>
</template>